ModifyAccessRule
Description
call ModifyAccessRule interface to modify permission group rules.
Request Method
POST
Request Path
/apsara/route/NAS/ModifyAccessRule
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
UserAccessType | BODY | string | No | all_squash | the system user of the authorized object has access to the file system. Value: no_squash: allows root user to access the file system. root_squash: when accessing as root, map the nobody user. all_squash: no matter what user is accessed, it is mapped to a nobody user. nobody user is the default user of Linux system, can only access public content on the server, with low permissions and high security characteristics. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Priority | BODY | integer | No | 1 | priority of permission group rules. value range: 1~100 default value: 1 (highest priority) |
AccessGroupName | BODY | string | Yes | classic-test | permission group name. |
SourceCidrIp | BODY | string | No | 192.1**.*.* | IP address or network segment. The format must be a single IP address or CIDR network segment. Description The permission group of the classic network type only supports IP addresses. |
FileSystemType | BODY | string | No | standard | file system type. default value: standard (general purpose NAS) |
AccessRuleId | BODY | string | Yes | 1 | permission group rule ID. |
RWAccessType | BODY | string | No | RDWR | Authorize the read and write permissions of the object to the file system. Value: RDWR (default): read and write RDONLY: read-only |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | 6299428C-3861-435D-AE54-9B330A00**** | request ID. |
Example
Successful Response example
{
"RequestId":"6299428C-3861-435D-AE54-9B330A00****"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}